/** 
 * Header de Piece.cxx
 *
 * @file Piece.h
 */

#if !defined Piece_h
#define Piece_h

/**
 * Declaration d'une classe mod�lisant une piece de jeu d'echec.
 */
class Piece 
{
private:
  int m_x;
  int m_y;
  bool m_white;
  
public:
  Piece();
  Piece(int x, int y, bool white);
  void init(int x, int y, bool white);
  void move(int x, int y);
  void setColor(bool white);
  void afficher();
  int getX();
  int getY();
  bool isWhite();
  bool collision(Piece p);
  Piece plusfort(const Piece & p);
  ~Piece();
}; 

#endif // !defined Piece_h
